<?php
$urlSource = dirname(dirname((__FILE__))) . '/config/configuration.php';

include_once $urlSource;

function Redirect($url, $permanent = false)
{
    $urlFinal = ROOT;
    $urlFinal .= $url;
//    echo $url . "||";
//    echo $urlFinal;
    if (headers_sent() === false)
    {
    	header('Location: ' . $urlFinal, true, ($permanent === true) ? 301 : 302);
    }
    exit();
}